package com.woniuxy.car.commodity.service.core.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 评论回复表
 * </p>
 *
 * @author awz
 * @since 2022-03-01
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
@TableName("kc_comment_reply")
@ApiModel(value = "CommentReply对象", description = "评论回复表")
public class CommentReply implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("评论回复id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("评论id")
    private Integer commentId;

    @ApiModelProperty("回复内容")
    private String replyContent;

    @ApiModelProperty("回复类型（1为回复评论，2为回复别人的回复）")
    private Integer replyType;

    @ApiModelProperty("回复用户id")
    private Integer fromUid;

    @ApiModelProperty("回复目标id")
    private Integer targetId;

    @ApiModelProperty("回复人昵称")
    private String fromUsername;

    @ApiModelProperty("回复人头像")
    private String fromUserPic;

    @ApiModelProperty("点赞数")
    private Integer approveCount;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;
}
